//
//  CallViewController.h
//  NetPhone
//
//  Created by intel intel on 12-4-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <AVFoundation/AVFoundation.h>

#import "UIImageView+WebCache.h"
#import "NewNetWork.h"
#import "TCPRequest.h"
#import "ASIFormDataRequest.h"
#import "AsyncSocket.h"
#import "HttpForAgent.h"
#import "BannerView.h"

@interface CallViewController : UIViewController<UIScrollViewDelegate,newNetWorkDelegate,AsyncSocketDelegate,TCPNetWorkDelegate,ASIHTTPRequestDelegate,AsyncSocketDelegate>
{
    
    AVAudioPlayer* callPlayer;
    int hhInt;
    int mmInt;
    int ssInt;
    UILabel* timeLabel;
    
    
    UIScrollView* bgScroll;
    int timeCount;
    UIPageControl* pgContrl;
    int pageNum;
    int TimeNum;
    BOOL Tend;
    NSMutableArray* array;
    NSTimer* myTimer;
    BOOL pageControlBeingUsed;
    BOOL directions;
    UInt64 startTime;
    UInt64 endTime;
    BOOL is_Lock;
    NSMutableDictionary* urlsDic;
    NSMutableArray* timeArr;
    UIImageView *bg;
    BannerView*barnnerView;
}
@property (nonatomic,retain)ASIFormDataRequest*requestCallingData;
@property (nonatomic,retain)UILabel *labStatus;
@property (nonatomic,retain)NSTimer* timer;
@property (nonatomic,retain) NSString *number;
@property (nonatomic,retain) NSString *name;
@property (nonatomic,retain) NSString* callNum;
@property (assign) int dialType;//拨打类型 0.直拨  1.回拨
+(void)callWithNumber:(NSString *)_number name:(NSString *)_name;
+(void)callWithNumber:(NSString *)_number name:(NSString *)_name AndDialType:(int)dialType;
+(CallViewController *) sharedInstance;

@end
